
<%@ page import="com.bafa.objects.*" %>
<%@ page import="com.bafa.middle.*" %>

   <% Team team = (Team)request.getAttribute("Team");   %>
 
      <% TeamSeason teamSeason = (TeamSeason)request.getAttribute("TeamSeason");   %>

<style type="text/css">

#Main {
	position:relative;
	width:701px;
	height:551px;
	z-index:1;
}

</style>

<link href="styles_5.css" rel="stylesheet" type="text/css" />
<link href="stats.css" rel="stylesheet" type="text/css" />

<style type="text/css">
<!--
#Record {
	position:absolute;
	width:300px;
	height:115px;
	z-index:1;
}
#HeaderLarge {
	position:absolute;
	width:300px;
	height:21px;
	z-index:1;
}
#MainLarge {
	position:absolute;
	width:4300px;
	z-index:2;
	top: 22;
	height: 90;
}


#Misc {
	position:absolute;
	width:200px;
	height:115px;
	z-index:2;
	left: 350;
}
#headersmall {
	position:absolute;
	width:250px;
	height:21px;
	z-index:1;
}
#mainsmall {
	position:absolute;
	width:150px;
	height:115px;
	z-index:2;
	top: 21;
}

#Awards {
	position:absolute;
	width:150px;
	height:115px;
	z-index:2;
	left: 350px;
	top:100px
}

#headervsmall {
	position:absolute;
	width:150px;
	height:21px;
	z-index:1;
}

#mainvsmall {
	position:absolute;
	width:150px;
	height:115px;
	z-index:2;
	top: 21;
}
#seasons {
	position:absolute;
	width:300px;
	height:115px;
	z-index:1;
}

#matches {
	position:absolute;
	width:300px;
	height:115px;
	z-index:1;
	left:320px;
}
#headermedium {
	position:absolute;
	width:300px;
	height:21px;
	z-index:1;
}
#tablemedium {
	position:absolute;
	width:280px;
	height:115px;
	z-index:2;
	top: 22;
}
#Layer1 {
	position:absolute;
	width:300px;
	height:115px;
	z-index:2;
	left: 0;
	top: 165px;
}
#scorers {
	position:absolute;
	width:150px;
	height:100px;
	z-index:2;
	left: 500px;
}
#headervsmall {
	position:absolute;
	width:150px;
	height:21px;
	z-index:1;
}
#mainvsmall {
	position:absolute;
	width:200px;
	height:100px;
	z-index:2;
	top: 22;
}
-->
</style>
<div id="Main">
  <div id="seasons">
    <div class="avlh" id="headermedium">Season</div>
    <div id="tablemedium">
      <table width="252" border="0" class="bafatablemedium">
      	<tr>
		<td class="r2"><strong>Played</strong></td>
		<td class="r2"><%=teamSeason.getNumberOfGamesPlayed()%></td>
        </tr>
        <tr>
	  <td class="r1"><strong>Won</strong></td>
	  <td class="r1"><%=teamSeason.getNumberOfGamesWon()%></td>
        </tr>
        <tr>
	          <td class="r2"><strong>Lost</strong></td>
	          <td class="r2"><%=teamSeason.getNumberOfGamesLost()%></td>
        </tr>
        <tr>
		          <td class="r1"><strong>Drawn</strong></td>
		          <td class="r1"><%=teamSeason.getNumberOfGamesDrawn()%></td>
        </tr>
        <tr>
          <td class="r2"><strong>Cleansheets</strong></td>
          <td class="r2"><%=teamSeason.getNumberOfCleanSheets()%></td>
        </tr>
		<tr>
          <td class="r1"><strong>Goals Scored</strong></td>
         
          <td class="r1"><%=teamSeason.getNumberOfGoalsScored()%></td>
        </tr>
		<tr>
          <td class="r2"><strong>Goals Conceded</strong></td>
         
          <td class="r2"><%=teamSeason.getNumberOfGoalsConceded()%></td>
        </tr>
		<tr>
		  <td class="r1"><strong>Top Scorer </strong></td>
		  <td class="r1"><%=teamSeason.getTopScorer().getName()%> (<%=teamSeason.getTopScorer().getGoals()%>)</td>
	    </tr>
	
      </table>
    </div>
  </div>
  
  
  <div id="matches">
    <div class="avlh" id="headermedium">Match Records</div>
    <div id="tablemedium">
      <table width="252" border="0" class="bafatablemedium">
        
       <tr>
          <td class="r1"><strong>Biggest Win</strong></td>
          <td class="r1"><%=teamSeason.getBiggestWin().getOpposition()%> </td>
          <td class="r1"><%=teamSeason.getBiggestWin().getGoalsFor()%>-<%=teamSeason.getBiggestWin().getGoalsAgainst()%></td>
        </tr>
		<tr>
          <td class="r2"><strong>Biggest Defeat</strong></td>
          <td class="r2"><%=teamSeason.getBiggestLoss().getOpposition()%> </td>
          <td class="r2"><%=teamSeason.getBiggestLoss().getGoalsFor()%>-<%=teamSeason.getBiggestLoss().getGoalsAgainst()%></td>
        </tr>
       
		<tr>
          <td class="r1"><strong>Most Goals Scored</strong></td>
          <td class="r1"><%=teamSeason.getMostScored().getOpposition()%></td>
          <td class="r1"><%=teamSeason.getMostScored().getGoalsFor()%>-<%=teamSeason.getMostScored().getGoalsAgainst()%></td>
        </tr>
	<%/*
	<tr>
          <td class="r2"><strong>Most Goals Conceded</strong></td>
          <td class="r1"><%=stats.getMostGoalsInMatch().getOpposition()%></td>
          <td class="r1"><%=stats.getRecordGoalsConceded()[0]%></td>
        </tr>
		<tr>
          <td class="r1"><strong>Top Scorer</strong></td>
          <td class="r2"><%=stats.getMostGoalsInMatch().getOpposition()%> </td>
          <td class="r2"><%=stats.getRecordGoalsConceded()[0]%></td>
        </tr>
        <%*/%>
		
      </table>
    </div>
  </div>
  
</div>
